﻿@model IEnumerable<string>
<script type="text/javascript" language="javascript">
    function OnSuccess(data) {
        $("#PeriodHours").val(data.Object);
        $('#SpecificHoursDialog').dialog('close');
    }
</script>
@{
    AjaxOptions ajaxOpts = new AjaxOptions
    {
        HttpMethod = HttpVerbs.Post.ToString(),
        OnSuccess = "OnSuccess"
    };
}
@using (Ajax.BeginForm(MVC.Bots.SpecificHours.Save(), ajaxOpts))
{
    @Html.CheckBoxList("hours",
                   x => Model,
                   x => x,
                   x => x,
                   x => new string[] { })
    <input id="Submit1" type="submit" value="submit" />
}